
import request from '@/utils/request'

import variable from '@/utils/variables'
const baseURL = variable.URL.baseURL

// 查询类目列表
export function getSelectPcList() {
    return request({
        baseURL: baseURL,
        url: '/news/trade/select_pc_list',
        method: 'GET'
    })
}

//根据类目分页查询内容
export function getSelectContentList(params) {
    return request({
        baseURL: baseURL,
        url: '/news/select_pc_list',
        method: 'GET',
        params:params
    })
}

//获取品牌中心banner图
export function getPicList(query) {
    return request({
        baseURL: baseURL,
        url: '/extend/content/list',
        method: 'GET',
        params: query
    })
}

//获取一级品类列表
export function getTradeList(query) {
    return request({
        baseURL: baseURL,
        url: '/category/operate/list',
        method: 'GET',
        params: query
    })
}

//品牌列表
export function getBrandList(params) {
    return request({
        baseURL: baseURL,
        url: '/category/brand/search_pc',
        method: 'GET',
        params: params
    })
}

//获取品牌详情
export function getBrandDetail(params) {
    return request({
        baseURL: baseURL,
        url: '/category/brand/getBrand',
        method: 'GET',
        params: params
    })
}

//获取品牌下推荐商品
export function productNewsList(params) {
    return request({
        baseURL: baseURL,
        url: '/product/front/brand/product_news_list',
        method: 'GET',
        params: params
    })
}

//(新)品牌-热销商品
export function productHotList(params) {
    return request({
        baseURL: baseURL,
        url: '/product/front/brand/product_hot_list',
        method: 'GET',
        params: params
    })
}